define(["jquery","template","bld/template/classify/programList.tpl"],function($,template,tpl) {
    var ui = {};

    var drawQueryAllScheme = function(data) {
        return template("programList_queryAllScheme", data);
    }
    var drawAdd = function(data) {
        return template("programList_add", data);
    }
    ui.queryAllScheme = function(options) {
        $("#" + options.id).html(tpl.queryAllScheme());
        var h = drawQueryAllScheme(options);
        $("#" + options.id).html(h);
    }
    ui.add = function(options) {
        options.dom.html(tpl.add());
        var h = drawAdd(options);
        options.dom.html(h);
    }
    
    return ui;
});